package com.swust.book_shop.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.swust.book_shop.pojo.BookInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.swust.book_shop.pojo.vo.BookItemVo;
import com.swust.book_shop.pojo.vo.BookQueryVo;
import com.swust.book_shop.pojo.vo.BookVo;

import java.util.List;

/**
* @author 86151
* @description 针对表【book_info】的数据库操作Service
* @createDate 2022-05-04 23:16:39
*/
public interface BookInfoService extends IService<BookInfo> {
    /**
     * 上传书本
     * @description:
     * @author: Liushuai
     * @date: 2022/5/9 19:23
     * @param bookVo
     * @param account
     * @return boolean
     **/
    int uploadBook(String account,BookVo bookVo);

    /**
     * @description:
     * @author: Liushuai
     * @date: 2022/5/17 23:32
     **/
    IPage<BookItemVo> queryBookItemLimit(IPage iPage);

    IPage<BookItemVo> queryBookItemLimitByPriceOrBookName(IPage iPage,BookQueryVo bookQueryVo);

    IPage<BookItemVo> queryBookByCategory(IPage iPage,String category);

}
